Create a New Test
Source code
'************************************************************************************************************************
'Description:
'
'This example starts the testing application, opens a new test, and configures it for recording and running on a Web application.
'
'Assumptions:
'The testing application is not open.
'************************************************************************************************************************

Dim qtApp 'As QuickTest.Application ' Declare the application object variable
Set qtApp = CreateObject("QuickTest.Application") ' Create the application object

ret = qtApp.SetActiveAddins(Array("Web","ActiveX"), errDesc) 'Load the Web and ActiveX Add-ins

qtApp.Launch ' Start the testing application
qtApp.New ' Open a new test. 
'By default, a VBScript test is created. To create a Python test (versions 26.1 and later), pass 1 in the Language parameter.
' Configure the Web application to use with this test qtApp.Test.Settings.Launchers("Web").Active = True qtApp.Test.Settings.Launchers("Web").Browser = "IE" qtApp.Test.Settings.Launchers("Web").Address = "https://www.advantageonlineshopping.com" qtApp.Test.Settings.Launchers("Web").CloseOnExit = True ' Configure Active Screen access settings qtApp.Test.Settings.Web.ActiveScreenAccess.UserName = "user1" qtApp.Test.Settings.Web.ActiveScreenAccess.Password = "mypassword" ' Configure other Web settings qtApp.Test.Settings.Web.BrowserNavigationTimeout = 60000 qtApp.Visible = True ' Make the application visible Set qtApp = Nothing ' Release the Application object